# 工具列表,第三方函数的说明书
tools = [
    {
        "name":"get_closing_price",
        "description":"获取指定股票的收盘价",
        "parameters":{
            "type":object,
            "properties":{
                "name":{
                    "type":"string",
                    "description":"股票名称"
                }
            },
            "required":["name"]
        }
    }
]

def get_closing_price(name):
    #朝向第三方API请求获取股票收盘价格
    if name == "青岛啤酒":
        return 10.5
    elif name == "贵州茅台":
        return 3000.5
    else:
        return '未知股票'